package com.qdxwx.data.mapper.member;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.member.MemberSale;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MemberSale接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface MemberSaleMapper {

    int updateMemberSale(MemberSale memberSale);

    MemberSale getMemberSaleById(long id);

    int insertMemberSale(MemberSale memberSale);

    int deleteByIds(String[] ids);

    List<MemberSale> getMemberSaleByType(int type);

    List<MemberSale> selectMemberSaleList(@Param("e") MemberSale memberSale, @Param("page") PageRequest page);

    long selectMemberSaleCount(@Param("e") MemberSale memberSale);

    int updateStatusByTypeId(@Param("typeId") int typeId, @Param("status")  int status);
}